import koji, os, sys, requests

pwd = os.path.dirname(os.path.realpath(__file__))
sys.path.append(pwd + '../')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'riscv_build_dataset.settings')

import django

django.setup()

from fedora.models import koji_package, koji_build
from config import BASE_URL
from tqdm import tqdm

session = koji.ClientSession(f'{BASE_URL}/kojihub')


def list_tags():
    tags = session.listTags()
    # print(tags)
    for tag in tags:
        print(tag.get('name'))


if __name__ == '__main__':
    list_tags()
